class Dec:
    def __init__(self,time):
        self.time = time
    def newFunc(self):
        print("good %s ,"%self.time,end="")
        return self.__func()
    def __call__(self,func):
        self.__func = func
        return self.newFunc




@Dec(time="morning")
def greeting():
    print("glad to see you")
    return 32
greeting()
print(greeting())